﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jzy.Core.Common.Basic;

namespace ECommerce.Model.Advertisement
{
    public partial class AdvertisementInfo
    {
        public string SmallImageAbsPath
        {
            get
            {
                if (!string.IsNullOrEmpty(this.SmallImage))
                {
                    return GlobalVar.WebAppPath + this.SmallImage;
                }
                else
                {
                    return this.SmallImage;
                }
            }
        }
        public string BigImageAbsPath
        {
            get
            {
                if (!string.IsNullOrEmpty(this.BigImage))
                {
                    return GlobalVar.WebAppPath + this.BigImage;
                }
                else
                {
                    return this.BigImage;
                }
            }
        }
    }
}
